home *** CD-ROM | disk | FTP | other *** search
- on ReInit
- global theShipYVelocity, theLastSpriteXs, theLastSpriteYs, theFirstShipChannel, theLastKeyTime, theBuildingCount, theFirstDropOffBuilding, theSecondDropOffBuilding, theThirdDropOffBuilding, theFourthDropOffBuilding, theLastDropOffBuilding, theFirstPodChannel, theSecondPodChannel, theThirdPodChannel, theFourthPodChannel, theSecondsLeft, theGameOver, theMaxNumBuildings, theFirstButtonPressed, theGameNumber, theWonLastGame, theFirstHeadChannel, theLastHeadChannel, theStartSeconds, theWantShowScore
- set theWantShowScore to 0
- set theFirstButtonPressed to 0
- set theGameOver to 0
- if theWonLastGame then
- set theGameNumber to theGameNumber + 1
- else
- set theGameNumber to 1
- end if
- set theWonLastGame to 0
- if theGameNumber = 2 then
- set theSecondsLeft to 89
- else
- if theGameNumber = 3 then
- set theSecondsLeft to 79
- else
- if theGameNumber = 4 then
- set theSecondsLeft to 69
- else
- if theGameNumber = 5 then
- set theSecondsLeft to 59
- else
- if theGameNumber = 6 then
- set theSecondsLeft to 49
- else
- if theGameNumber = 7 then
- set theSecondsLeft to 39
- else
- if theGameNumber = 8 then
- set theSecondsLeft to 29
- else
- if theGameNumber >= 9 then
- set theSecondsLeft to 19
- else
- set theSecondsLeft to 99
- set theGameNumber to 1
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- set theStartSeconds to theSecondsLeft
- set the visible of sprite theFirstPodChannel to 0
- set the visible of sprite theSecondPodChannel to 0
- set the visible of sprite theThirdPodChannel to 0
- set the visible of sprite theFourthPodChannel to 0
- set the locV of sprite theFirstPodChannel to 100
- set the locV of sprite theSecondPodChannel to 100
- set the locV of sprite theThirdPodChannel to 100
- set the locV of sprite theFourthPodChannel to 100
- set the locH of sprite theFirstPodChannel to -100
- set the locH of sprite theSecondPodChannel to -100
- set the locH of sprite theThirdPodChannel to -100
- set the locH of sprite theFourthPodChannel to -100
- set the regPoint of member "family 1" to point(7, 8)
- set the regPoint of member "family 2" to point(7, 14)
- set the regPoint of member "family 3" to point(8, 9)
- set the regPoint of member "family 4" to point(8, 11)
- set the regPoint of member "Left family 1" to point(7, 8)
- set the regPoint of member "Left family 2" to point(7, 14)
- set the regPoint of member "Left family 3" to point(8, 12)
- set the regPoint of member "Left family 4" to point(8, 11)
- set theFirstDropOffBuilding to 5
- set theSecondDropOffBuilding to 10
- set theThirdDropOffBuilding to 15
- set theFourthDropOffBuilding to 20
- set theLastDropOffBuilding to 25
- set theBuildingCount to 1
- set theMaxNumBuildings to 30
- set theLastKeyTime to the ticks
- set theLastSpriteXs to []
- set theLastSpriteYs to []
- if the machineType > 255 then
- set theShipYVelocity to 7
- else
- set theShipYVelocity to 14
- end if
- set the memberNum of sprite theFirstShipChannel to the number of member "Ship Down 1"
- set the timeoutLength to 60
- set the timeoutKeyDown to 0
- set the timeoutMouse to 0
- when timeOut then DoClock
- end
-